// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import resource from 'vue-resource'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import qs from 'qs'
import MavonEditor from "mavon-editor"
import "mavon-editor/dist/css/index.css"

Vue.prototype.$axios = axios //挂载在vue实例化对象上
axios.defaults.baseURL = '/apis'//配置BaseUrl
Vue.prototype.$qs = qs

Vue.config.productionTip = false

Vue.use(resource)
Vue.use(ElementUI)
Vue.use(MavonEditor)
/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
